/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package rigo.ricard.pris.rs.ac.uns.dmi.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link CarPicture}.
 * </p>
 *
 * @author    Rigo Richard
 * @see       CarPicture
 * @generated
 */
public class CarPictureWrapper implements CarPicture, ModelWrapper<CarPicture> {
	public CarPictureWrapper(CarPicture carPicture) {
		_carPicture = carPicture;
	}

	public Class<?> getModelClass() {
		return CarPicture.class;
	}

	public String getModelClassName() {
		return CarPicture.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("carPicureId", getCarPicureId());
		attributes.put("adId", getAdId());
		attributes.put("fileName", getFileName());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long carPicureId = (Long)attributes.get("carPicureId");

		if (carPicureId != null) {
			setCarPicureId(carPicureId);
		}

		Long adId = (Long)attributes.get("adId");

		if (adId != null) {
			setAdId(adId);
		}

		String fileName = (String)attributes.get("fileName");

		if (fileName != null) {
			setFileName(fileName);
		}
	}

	/**
	* Returns the primary key of this car picture.
	*
	* @return the primary key of this car picture
	*/
	public long getPrimaryKey() {
		return _carPicture.getPrimaryKey();
	}

	/**
	* Sets the primary key of this car picture.
	*
	* @param primaryKey the primary key of this car picture
	*/
	public void setPrimaryKey(long primaryKey) {
		_carPicture.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the car picure ID of this car picture.
	*
	* @return the car picure ID of this car picture
	*/
	public long getCarPicureId() {
		return _carPicture.getCarPicureId();
	}

	/**
	* Sets the car picure ID of this car picture.
	*
	* @param carPicureId the car picure ID of this car picture
	*/
	public void setCarPicureId(long carPicureId) {
		_carPicture.setCarPicureId(carPicureId);
	}

	/**
	* Returns the ad ID of this car picture.
	*
	* @return the ad ID of this car picture
	*/
	public long getAdId() {
		return _carPicture.getAdId();
	}

	/**
	* Sets the ad ID of this car picture.
	*
	* @param adId the ad ID of this car picture
	*/
	public void setAdId(long adId) {
		_carPicture.setAdId(adId);
	}

	/**
	* Returns the file name of this car picture.
	*
	* @return the file name of this car picture
	*/
	public java.lang.String getFileName() {
		return _carPicture.getFileName();
	}

	/**
	* Sets the file name of this car picture.
	*
	* @param fileName the file name of this car picture
	*/
	public void setFileName(java.lang.String fileName) {
		_carPicture.setFileName(fileName);
	}

	public boolean isNew() {
		return _carPicture.isNew();
	}

	public void setNew(boolean n) {
		_carPicture.setNew(n);
	}

	public boolean isCachedModel() {
		return _carPicture.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_carPicture.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _carPicture.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _carPicture.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_carPicture.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _carPicture.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_carPicture.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new CarPictureWrapper((CarPicture)_carPicture.clone());
	}

	public int compareTo(
		rigo.ricard.pris.rs.ac.uns.dmi.model.CarPicture carPicture) {
		return _carPicture.compareTo(carPicture);
	}

	@Override
	public int hashCode() {
		return _carPicture.hashCode();
	}

	public com.liferay.portal.model.CacheModel<rigo.ricard.pris.rs.ac.uns.dmi.model.CarPicture> toCacheModel() {
		return _carPicture.toCacheModel();
	}

	public rigo.ricard.pris.rs.ac.uns.dmi.model.CarPicture toEscapedModel() {
		return new CarPictureWrapper(_carPicture.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _carPicture.toString();
	}

	public java.lang.String toXmlString() {
		return _carPicture.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_carPicture.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public CarPicture getWrappedCarPicture() {
		return _carPicture;
	}

	public CarPicture getWrappedModel() {
		return _carPicture;
	}

	public void resetOriginalValues() {
		_carPicture.resetOriginalValues();
	}

	private CarPicture _carPicture;
}